import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println(func());
    }
    public static int func(){
        try{
            Scanner sc=new Scanner(System.in);
            int a=sc.nextInt();
            return a;
        }catch (InputMismatchException e){
            System.out.println("输入不匹配");
        }finally {
            return 99;
        }
    }
    public static void main1(String[] args) {
        int[] array={1,2,3};
        try{
            System.out.println(array[1]);
            return;
        }catch(ArrayIndexOutOfBoundsException e){
            e.printStackTrace();
            System.out.println("数组越界异常");
        }finally {
            System.out.println("finally");
        }
        System.out.println("程序继续执行");
    }
}